#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    bool doesValidArrayExist(vector<int>& derived) {
        bool flag = true;
        for (auto& e : derived)
        {
            if (e == 1)
                flag = !flag;
        }
        return flag;
    }
};